---惩戒圣印攻击
---@class SkillEffect83101:BaseSkillEffect
SkillEffect83101 = ClientFight.CreateClass("SkillEffect83101",ClientFight.BaseSkillEffect)
local t = SkillEffect83101
t.BUFF_EFFECT_PARAMETERS = "TARGET_BUFF_"
---@param fight Fight
---@param fighter Fighter
---@param skill FightSkill
---@param center Vector2
---@param excludes table<number,boolean>
---@return Fighter
function t:selectAttackTarget(fight, fighter, skill, center,excludes)
    local targetIdStr = fighter.paramemters[t.BUFF_EFFECT_PARAMETERS .. skill.skillBean.f_SkillScriptParameter[1]];
    if (string.IsEmpty(targetIdStr))then
        return nil;
    end
    local targetId = tonumber(targetIdStr);
    local target
    for i = 1, table.getn(fight.teams) do
        local fightTeam = fight.teams[i];
        for j = 1, table.getn(fightTeam.fighters) do
            local _fighter = fightTeam.fighters[j]
            if (_fighter.fighterId == targetId) then
                target = _fighter;
                break;
            end
        end
    end
    if (target == nil or target:isDie()) then
        return nil
    end
    return target;
end
t.New()